<h1>Editing user</h1>

<% form_for(@user) do |f| %>
  <%= f.error_messages %>

  <h2>Information</h2>
  <dl>
    <dt><%= f.label :dn, 'Distinguished Name' %></dt>
    <dd><%= f.text_field :dn %></dd>
    <dt><%= f.label :first_name %></dt>
    <dd><%= f.text_field :first_name %></dd>
    <dt><%= f.label :last_name %></dt>
    <dd><%= f.text_field :last_name %></dd>
    <dt><%= f.label :email, 'E-mail' %></dt>
    <dd><%= f.text_field :email %></dd>
  </dl>
  <h2>Notification Preferences</h2>
  <dl>
    <dt><%= f.check_box :notify_on_new %></dt>
    <dd><%= f.label :notify_on_new, 'Send notification when my projects have new issues' %></dd>
    <dt><%= f.check_box :notify_on_update_if_subscribed %></dt>
    <dd><%= f.label :notify_on_new, 'Send notification when my subscribed issues are updated' %></dd>
    <dt><%= f.check_box :notify_on_update_if_owned %></dt>
    <dd><%= f.label :notify_on_new, 'Send notification when my adopted or assigned issues are updated' %></dd>
    <dt><%= f.check_box :notify_on_assignment %></dt>
    <dd><%= f.label :notify_on_new, 'Send notification when I am assigned a new issue' %></dd>
    <dt><%= f.check_box :notify_on_new %></dt>
    <dd><%= f.label :notify_on_new, 'Send notification when isses I have assigned are disowned' %></dd>
  </dl>
  <%= f.submit 'Update', :class => 'submit' %>
  <small><%= link_to 'Cancel', user_path( @user ) %></small>
<% end %>
